package com.dcd.controller;

import com.dcd.pojo.Program;
import com.dcd.service.ProgramService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ProgramController {

    @Autowired
    private ProgramService programService;

    /**
     * 查询指定节目信息
     * @param program_id
     * @return
     */
    @RequestMapping("/select_appoint_program_by_id")
    public Program select_appoint_program_by_id(@RequestParam int program_id){
        return programService.select_appoint_program_by_id(program_id);
    }
}
